package com.yang.entity;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.yang.entity.commodityDetail.Skus;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;

import java.math.BigDecimal;

@Data
@Getter
@Setter
// 当属性为默认值时，不序列化
@JsonInclude(JsonInclude.Include.NON_DEFAULT)
public class OrderDetail {

    // 订单详情类，包含订单的相关信息
    private Long orderDetailId;
    // 订单ID
    private Long ordersId;
    // 用户ID
    private Long userId;
    // 买家ID
    private String buyerId;
    // 商品ID
    private Long commodityId;
    // SKU ID
    private Long skuId;
    // 收货id
    private Long addressId;
    // 收货地址姓名快照
    private String receiverName;
    // 收货地址电话快照
    private String receiverPhone;
    // 收货地址快照
    private String receiverAddressDescription;
    // 购买数量
    private Long quantity;
    // 总价格
    private BigDecimal totalPrice;
    // 订单状态
    private Integer status;
    // 创建时间
    private String createTime;
    // 更新时间
    private String updateTime;

    // 订单其他信息
    private Commodity commodity;
    // 地址信息
    private Address address;
    // sku信息
    private Skus sku;
    // 订单状态
    private Integer orderStatus;
}
